import request from "@/utils/request";



const api_name = "/admin/product/brand"
export const getBrandPage =(formInline)=>{
    console.log(formInline)
    return request(api_name+`/${formInline.pageNum}/${formInline.pageSize}`);
}

export const addBrand = (data)=>{
    return request({
        method:"POST",
        url:`${api_name}/addBrand`,
        data
    })
}

export const modifyBrand = (data)=>{
    return request({
        method:"PUT",
        url:`${api_name}/modifyBrand`,
        data
    })
}

export const deleteBrand = (data)=>{
    return request({
        method:"delete",
        url:`${api_name}/deleteBrand`,
        data
    })
}

export const getAllBrandList =()=>{

    return request(api_name+`/getAllBrandList`);
}
